﻿<views:MvxWpfView
    x:Class="Sidvall.WorkItemManager.UI.Wpf.Views.WorkItems.WorkItemContextView"
    xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:vms="clr-namespace:Sidvall.WorkItemManager.UI.ViewModels.WorkItems;assembly=Sidvall.WorkItemManager.UI"
    xmlns:Controls="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Controls" 
    xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">

    <views:MvxWpfView.Resources>
        <Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        <Converters:BooleanToVisibilityConverter x:Key="NotBooleanToVisibilityConverter" Not="True"/>
        <Converters:InverseBooleanConverter x:Key="InverseBooleanConverter" />
    </views:MvxWpfView.Resources>

    <Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:WorkItemContextViewModel}}">
        <TextBox TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Context}" VerticalScrollBarVisibility="Auto"
                 IsReadOnly="{Binding CanEdit, Converter={StaticResource NotBooleanToVisibilityConverter}}"/>
    </Grid>
</views:MvxWpfView>
